<template>
  <div class="orderfrom">
    <div class="flex">
      <eleheader title="确认订单">
        <template v-slot:left>
          <!-- 左箭头 -->
          <van-icon
            name="arrow-left"
            class="header_left"
            @click="$router.back()"
          />
        </template>
        <template v-slot:right>
          <span
            class="header_right"
            @click="$router.push({ path: '/wyregisterS' })"
          >
            <span>登录|</span>
            <span>注册</span>
          </span>
        </template>
      </eleheader>
    </div>
    <van-contact-card
      type="edit"
      :name="currentContact.name"
      :tel="currentContact.tel"
      @click="onEdit"
    />
    <div class="sendTime">
      <div class="left">
        <h2>送达时间</h2>
      </div>
      <div class="right">
        <h3>尽快送达 | 预计 06:43</h3>
        <span>蜂鸟专送</span>
      </div>
    </div>
    <div class="pay">
      <img src="../assets/c1ba0b666341da42cfe4762eff66b272.png" alt="" />
    </div>
  </div>
</template>

<script>
import eleheader from "@/components/eleheader";

export default {
  components: { eleheader },
  name: "profile",
  data() {
    return {
      currentContact: {
        name: "张三",
        tel: "13000000000",
      },
    };
  },

  methods: {
    onEdit() {},
  },
};
</script>

<style lang="less" scoped >
.orderfrom {
  background-color: rgb(243, 243, 243);
  padding-top: 60px;
  .flex {
    width: 100%;
    position: fixed;
    top: 0;
    overflow: hidden;
    z-index: 1;
  }

  .sendTime {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    padding: 10px 20px;
    border-left: 5px solid #3190e8;
    background-color: #fff;
    .right {
      position: relative;
      h3 {
        color: #3190e8;
      }
      span {
        position: absolute;
        display: inline-block;
        font-size: 16px;
        right: 0;
        height: 20px;
        width: 80px;
        line-height: 20px;
        border-radius: 2px;
        text-align: center;
        background-color: #3190e8;
        color: #fff;
      }
    }
  }

  header {
    justify-content: space-between;
  }

  .header_left,
  .header_right {
    padding: 0 10px;
  }
  .header_right {
    width: 70px;
  }
  .header_left {
    margin-top: 14px;
    width: 15%;
  }
  .pay {
    margin-top: 15px;
    width: 100%;
    height: 100%;
    img {
      width: 100%;
    }
  }
}
</style>